<template>
  <el-container>
    <el-header>
      <el-image style="width: 50px; height: 50px; float: left; margin: 5px" :src="require('@/assets/logo.png')" />
      <el-avatar style="float: right; margin: 20px" shape="square" :size="30" :src="'https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png'" />
    </el-header>
    <el-container>
      <el-aside width="200px">
        <SideMenu/>
      </el-aside>
      <el-container>
        <el-main>
<!--          <PageHeader/>-->
          <router-view/>
        </el-main>
      </el-container>
    </el-container>
  </el-container>
</template>
<!--  <HelloWorld msg="Welcome to Your Vue.js App"/>-->

<script>
// import HelloWorld from './components/HelloWorld.vue'
import SideMenu from './components/SideMenu.vue';
// import PageHeader from './components/PageHeader.vue'

export default {
  name: 'App',
  components: {
    // HelloWorld
    SideMenu,
    // PageHeader
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

/* 去除 body 和 html 的默认外边距 */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* 设置 el-container 的高度为 100% */
.el-container {
  height: 100%;
}

.el-header{
  background-color: #051321;
  color: #333;
  line-height: 60px;
}

/* 设置 el-main 的样式 */
.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}
.el-aside {
  background-color: rgb(48, 64, 85);
}
.el-menu-item {
  font-style: inherit;
}
</style>
